<template>
    <div class="nine-list-main aui-bg-f" @click="fnOpenDetail()">
        <div class="nine-list-img">
            <img :src="item.pict_url" alt="">
        </div>
        <div class="nine-list-content">
            <div class="top">
                <div class="tags aui-ftn12">
                    {{item.user_type == "1" ? '天猫' : '淘宝'}}
                </div>
                <div class="title aui-text-6 aui-ftn13 van-ellipsis" v-text="item.title"></div>
            </div>
            <div class="bottom">
                <div class="juan">
                    <div class="price">
                        <span class="emb">￥</span>
                        <span class="aui-ftn16" v-text="item.quanhou_jiage"></span>
                    </div>
                    <div class="after aui-text-9 aui-ftn12">卷后</div>
                </div>
                <div class="discount aui-text-f aui-ftn12">
                    {{item.coupon_info_money | d_price}}元卷
                </div>
            </div>
        </div>
    </div>
</template>
<script>
import "@/styles/discount.css"
export default {
    name: 'list',
    props: ['item', 'cid'],
    data () {
        return {
        }
    },
    mounted () {
    },
    filters: {
        d_price(price) {
            return price.substring(0, price.indexOf("."))
        }
    },
    methods: {
        fnOpenDetail() {
            console.log(this.$route.query.type)
            this.utils.fnOpenCommon(this, {name: 'discount_detail', params: {cid: this.cid, id: this.item.tao_id, type: this.$route.query.type}})
        }
    }
}
</script>